from django.db import models
import django.utils.timezone as timezone
# Create your models here.


class p_file(models.Model):
    id = models.BigAutoField(max_length=30, primary_key=True)
    pdf_name = models.CharField(max_length=255)
    pdf_file = models.CharField(max_length=255)
    is_delete = models.IntegerField(default=0)

    class Meta:
        db_table = "p_file"

class p_user_manage(models.Model):
    id = models.BigAutoField(max_length=30, primary_key=True)
    u_sum = models.IntegerField()
    u_list = models.CharField(max_length=255)
    u_password = models.CharField(max_length=255)
    is_delete = models.IntegerField(default=0)
    createTime = models.DateTimeField(default=timezone.now)

    class Meta:
        db_table = "p_user_manage"

class p_user_file(models.Model):
    id = models.BigAutoField(max_length=30, primary_key=True)
    u_id = models.IntegerField()
    p_id = models.IntegerField()
    g_id = models.IntegerField()
    is_delete = models.IntegerField(default=0)

    class Meta:
        db_table = "p_user_file"